home *** CD-ROM | disk | FTP | other *** search
- /*
- ** $VER: getdtyp.rexx 1.0 (2.1.96) Rolf Rotvel
- **
- ** Usage: rx getdtyp.rexx <file>
- */
- call addlib('rexxsupport.library', 0, -30, 0)
- call addlib('datatypes.library', 0, -30)
-
- parse arg file
- if ~exists(file) then exit 10
-
- say file
- say filetype(file)
- exit
-
- FILETYPE: procedure
- parse arg file
- return strip(translate(examinedt(file,,), '', '0'x))
-